package models

type CourseGoods struct {
	// 课程Id
	CourseId int `json:"course_id" gorm:"column:course_id;type:int;primary_key;"`
	// 商品Id
	GoodsId int `json:"goods_id" gorm:"column:goods_id;type:int;primary_key;"`
}

// 插一批课程商品映射
func InsertMockCourseGoods() {
	DB.Model(&CourseGoods{}).Create([]CourseGoods{
		{CourseId: 1, GoodsId: 1},
		{CourseId: 2, GoodsId: 2},
	})
}
